package ai.zixing.interpreter02;

public class SubExpression implements Expression{

    private Expression exp1;

    private Expression exp2;

    public SubExpression(Expression exp1, Expression exp2) {
        this.exp1 = exp1;
        this.exp2 = exp2;
    }

    @Override
    public long interpret() {
        long res = exp1.interpret() - exp2.interpret();
        return res;
    }
}
